package com.itheima.mapper;

import com.itheima.pojo.Category;
import com.itheima.pojo.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * @author :WuJunJie
 * packageName :com.itheima.mapper
 * fileName :CategoryMapper
 * creationTime :2022-11-22 15:23
 */
@Mapper
public interface CategoryMapper {

    List<Category> selectPage( @Param("start") Integer start, @Param("pageSize") Integer pageSize);

    Integer countTotal();

    Integer insertCategory(@Param("category") Category category);

    Integer updateCategory(@Param("category") Category category);

    Integer deleteCategory(@Param("id") String id);

    List<Category> selectByType(@Param("type") String type);


    Category selectByCategoryId(@Param("categoryId") String categoryId);

    List<Category> selectCategories();

    List<Category> selectByCategoryIds(@Param("ids") Set<String> ids);
}
